package com.nervenets.shopping.service;

import com.nervenets.general.service.BaseService;
import com.nervenets.shopping.enumeration.*;
import com.nervenets.shopping.hibernate.domain.user.WealthFlow;

import java.util.List;
import java.util.Map;

public interface WealthFlowService extends BaseService<WealthFlow> {
    long getSurplus(long userId, WealthType wealthType);

    Map getMap(long userId, WealthType wealthType);

    Map wealthChange(long userId, long offset, WealthType wealthType, OperateType operateType, String detail, PayType payType, long ip, long unionId, UnionType unionType, FlowStatus flowStatus);

    long sumOf(WealthType wealthType, List<OperateType> operateTypes, long startTime, long endTime);
}
